<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
<div id="users_container" style="width: 90%">
	<table id="groups_table">
		<thead>
			<tr>
				<th>ID</th>
				<th>Nombre</th>
			</tr>
		</thead>
		<tbody>
		</tbody>
		<tfoot>
			<tr>
				<th>ID</th>
				<th>Nombre</th>
			</tr>
		</tfoot>
	</table>
</div>
<script type="text/javascript">
<!--
	require(
			[ 'jquery', 'views/groups/list' ],
			function($, UserList) {
				var groupsListURL = '<c:url value="/grupos?type=json&paginated=true"/>';
				$(function() {
					var groupsList = new UserList({
						el : "#groups_table",
						url : groupsListURL
					});
					groupsList.render();
				});
			});
//-->
</script>